#include <iostream>
#include "cppjieba/Jieba.hpp"
using namespace std;

int main()
{
    const char * dictPath = "dict/jieba.dict.utf8";
    const char * modelPath = "dict/hmm_model.utf8";
    const char * userDictPath = "dict/user.dict.utf8";
    const char * idfPath = "dict/idf.utf8";
    const char * stopWordPath = "dict/stop_words.utf8";
    cppjieba::Jieba jieba(dictPath, modelPath, userDictPath, idfPath, stopWordPath);
    
    // string sentence = "我从北京清华大学，去北京航空航天大学，看女朋友。";
    string sentence = "但随着最近十几年我国电视的高速普\n及";
    vector<string> word;
    jieba.Cut(sentence, word, true);

    for(auto elem : word){
        cout << "word = " << elem << "\n";
    }

    return 0;
}
